package com.google.code.pokerstats_service;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * A setting in which games take place (e.g. regular group of friends).
 *  
 * @author DL
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Group {
    /** The group's unique id. */
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    public Long id;

    /** The group's name. */
    @Persistent
    public String name;

    /** The group's owner (Facebook user id). */
    @Persistent
    public Long owner;
}
